package yh.common;

/**
 * @author yh
 */
public enum  WarningCode {
    /**
     *授权失败
     */
    TOKEN_ERROR("授权失败", 401),

    /**
     *请重新登录
     */
    LOGIN_ERROR("请重新登录", 403),

    /**
     *账号或密码错误
     */
    LOGIN_PARAM_ERROR("账号或密码错误", 1001),

    /**
     *请重新登录
     */
    REGISTER_MESSAGE_ERROR("短信验证码错误", 1002);


    private Integer code;
    private String message;
    WarningCode(String message, int code) {
        this.message = message;
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
